using UnityEngine;
using System;
using System.Collections;

[RequireComponent(typeof(Transform))]

public class PathNode : MonoBehaviour
{
	public Transform trans;
	public ArrayList adjacentNodes = new ArrayList();
	public PathNode[] realAdjacentNodes;
	public float radius;
	public PathNodeContainer container = null;
	//public GameObject player;
	
	
	
	public void OnDrawGizmos() {
		Gizmos.DrawIcon(transform.position, "apple1.gif");
		
		Gizmos.DrawWireSphere(transform.position, radius);
		
		for (int i = 0; i < realAdjacentNodes.Length; i++) {
			PathNode p = (PathNode)realAdjacentNodes[i];
			Gizmos.color = Color.blue;
			Gizmos.DrawLine(p.transform.position, transform.position);
		}
	}
	
	void Awake () {
		trans = gameObject.transform;
	//	container = (PathNodeContainer)GameObject.FindWithTag("PathNodes");
	}
	
	void Start() {
	}
	
	
}